package com.sudo.boot.common.constant.enums;

import com.sudo.boot.base.constant.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 父任务抛出异常，则子任务是否继续执行
 * @Author：DayDayUp
 * @Create：2023/4/19 13:57
 */
@Getter
@AllArgsConstructor
public enum ExceptionLimit implements BaseEnum<String> {
    /**
     * 异常中断
     */
    EX_STOP("ex_stop","异常中断"),
    /**
     * 异常继续
     */
    EX_GOON("ex_goon","异常继续");

    private final String code;
    private final String desc;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

}
